package com.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sp_order_goods")
public class OrderAndGoods {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer order_id;
    private Integer goods_id;
    private Double goods_price;
    private Integer goods_number;
    private Double goods_total_price;

    public void setOrderId(Integer order_id) {
        this.order_id = order_id;
    }

    public void setGoodsId(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public void setGoodsPrice(Double goods_price) {
        this.goods_price = goods_price;
    }

    public void setGoodsNumber(Integer goods_number) {
        this.goods_number = goods_number;
    }

    public void setGoodsTotalPrice(Double goods_total_price) {
        this.goods_total_price = goods_total_price;
    }
}
